![]() |
PATH![]() |
The com.apple.mrj.MRJOpenDocumentHandler interface contains one method, handleOpenFile , which is called when a document file needs to be opened.
Handles opening a document file.
public void handleOpenFile (File fileName);
This application-defined method is called when a document needs to be opened from the Finder. For example, this situation occurs when the user selects an Open menu item in the Finder or if the user double-clicks a file that bears the application's creator. You must register the method name by calling the
registerOpenDocumentHandler
method
registerOpenDocumentHandler
when initializing the application. The handleOpenFile method is only useful if you have packaged your Java application using JBindery.
The
registerOpenDocumentHandler
method
registerOpenDocumentHandler
.